package com.runa.monitor.platinterface.extend.third.newester.pojo;

/**
 * 响应状态码
 *
 * @author lyd
 * @version 1.0
 * @since 2018/5/31
 */
public enum ResponseCode {


    /* 默认成功信息 */
    SUCCESS(0, "处理成功"),
    LIMIT_DATA_300(40009, "计量设备数据不能超过300个"),
    /* 默认失败信息 */
    FAIL(-1, "处理失败");


    private int code;

    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int code() {
        return code;
    }

    public String message() {
        return message;
    }
}
